<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>比较数字的大小</title>
</head>
<body>
  <script>
    var A = 15;
    var B = 14;

    if (A > B) {
        console.log(A + " 大于 " + B);
    } else if (A < B) {
        console.log(A + " 小于 " + B);
    } else {
        console.log(A + " 等于 " + B);
    }
</script>
</body>
</html>